<template>
  <div>
    <el-col :span="24">
      <tabs value="name1" id="tab" @on-click="meetings">
        <tab-pane label="参会信息" name="name2">
          <!--三行-->
          <el-row class="row" id="three">
            <el-col :span="11">
              <div class="center">
                <el-row>
                  <el-col :span="24" class="h">
                    <el-col :span="22">
                      <p>涉及区域</p>
                    </el-col>
                    <el-col :span="2" style="float: right;">
                      <div>
                        <el-dropdown class="user-name" trigger="click">
                          <span class="el-icon-setting" style="color: #fff;font-size: 22px"></span>
                          <el-dropdown-menu slot="dropdown">
                            <button class="btn" style="color: #deb81b">全选</button><br>
                            <button class="btn" style="color: #1f9f91">全取消</button><br>
                            <button class="btn" style="color: #e85656">搜索</button><br>
                          </el-dropdown-menu>
                        </el-dropdown>
                      </div>
                    </el-col>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <div :style="{width: '100%', height: '400px'}">
                      <el-tree :data="data2" show-checkbox node-key="id" :default-expanded-keys="[3, 8,11]"></el-tree>
                    </div>
                  </el-col>
                </el-row>
              </div>
            </el-col>
          </el-row>
        </tab-pane >
      </tabs>
    </el-col>
  </div>
</template>

<script>
  import bus from '../../../bus';
  export default {
    components: {
    },
    data(){
      return {
        data2: [
          {
          id: 1,
          label: '华东区',
          children: [{
            id: 2,
            label: '上海',
            children: [{
              id: 3,
              label: 'SH001'
            }, {
              id: 4,
              label: 'SH002'
            }]
          }]
        },
          {
            id: 5,
            label: '华北区',
            children: [{
              id: 6,
              label: '北京',
              children: [{
                id: 7,
                label: 'BJ001'
              }, {
                id: 8,
                label: 'BJ002'
              }]
            }]
          },
          {
            id: 9,
            label: '华南区',
            children: [{
              id: 10,
              label: '广东省',
              children: [{
                id: 11,
                label: 'GD001'
              }, {
                id: 12,
                label: 'GD002'
              }]
            }]
          },
        ],
      }
    },
    methods:{
      meetings(){
        bus.$emit('select_word',this.select_word);
      }
    },
  }
</script>

<style scoped>
  .btn{
    width: 100%;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    background: #fff;
    border: 1px solid transparent;
/*    outline: none;*/
  }
  .row {
    padding-bottom: 30px;
  }
  .center {
    padding: 10px 40px;
    color: #fff;
    border-radius: 10px;
    background-image: url("../../../../assets/blur-bg-blurred.jpg");
  }
  .h {
    border-bottom: 2px solid #fff;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
  }
/*  span {
    display: inline-block;
    height: 25px;
    font-size: 16px;
  }*/
  .el-button {
    border: none;
    color: #fff;
    font-size: 15px;
    height: 30px;
    padding: 8px 10px;
  }
  .search-input {
    margin-left: -8px;
    padding-left: 8px;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .15);
    height: 25px;
    width: 100%;
  }
  .el-card{
    background-color: rgba(245, 245, 248, 0);
    border: none;
  }

  /**/
  .item-doctor{
    display: -webkit-box!important;
    height: 55px;
    display: -ms-flexbox!important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  .check-it{
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 2px solid #fff;
    cursor: pointer;
  }
  .photo{
    margin: 0 8px 0 8px;
  }
  .desc-wrap{
    width: 40%;
    flex-shrink: 0;
    color: #fff;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .name{
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .color-tag{
    display: inline-block;
    min-width: 42px;
    height: 20px;
    line-height: 20px;
    padding-right: 3px;
    padding-left: 3px;
    border-radius: 4px;
    font-size: 14px;
  }
  .green{
    background-color: #7b9e02;
  }
  .yellow{
    background-color: #deb81b;
  }
  .dark_green{
    background-color: #1f9e91;
  }
  .red{
    background-color: #e85656;
  }
  .desc{
    font-size: 12px;
  }
  .tags-wrap{
    flex-shrink: 1;
    -webkit-box-flex: 0;
    flex-grow: 0;
    overflow: hidden;
    height: 50px;
    line-height: 3;
  }
  .tags-wrap>span{
    font-size: 12px;
    margin-right: 24px;
    display: inline-block;
    color: #fff;
  }
  .el-tree{
    color: white;
    background: none;
  }
  table, th, td {
    padding: 10px 0;
  }
  #td>span{
    display: inline-block;
    padding: 0 10px;
    margin: 5px;
    border-radius: 5px;
  }
</style>
<style>
  .ivu-tabs-nav{
    width: 100%;
  }
  #tab>.ivu-tabs-bar>.ivu-tabs-nav-container>.ivu-tabs-nav-wrap>.ivu-tabs-nav-scroll>.ivu-tabs-nav>div{
    width: 33.3%;
    text-align: center;
  }
  .ivu-tabs-tab{
    color: #fff;
    font-size: 20px;
  }
  .ivu-tabs-ink-bar{
    background-color: #e85656!important;
    height: 5px!important;
    position: absolute!important;
    left: 0!important;
    bottom: -5px!important;
  }
  .ivu-tabs-nav .ivu-tabs-tab-active{
    color: #fff!important;
    font-weight: bold!important;
  }
  .ivu-tabs-nav {
    border-bottom: 5px solid #fff!important;
  }
  .el-collapse-item__header{
    background-color: rgba(245, 245, 248, 0) !important;
    color: #fff!important;
  }
  .el-collapse-item__wrap{
    background-color: rgba(245, 245, 248, 0)!important;
    color: #fff!important;
  }
  .el-collapse-item__content{
    color: #fff!important;
  }
  .el-tree-node:focus>.el-tree-node__content{
background: none;
  }
  .el-tree-node__content:hover{
    background: none;
  }
</style>
